package com.insigma.business.qrcode.soldier.dto;


import com.insigma.business.qrcode.common.vo.DescEnum;

import java.util.LinkedHashMap;
import java.util.Map;


public enum UnemploymentRegistrationTypeEnum implements DescEnum {
    
    INITIATIVE("人工填报"),

    
    SYSTEM("系统发现"),

    VISIT("走访"),

   ;

    UnemploymentRegistrationTypeEnum(String desc) {
        this.desc = desc;
    }

    
    private String desc;

    @Override
    public String getDesc() {
        return desc;
    }

    
    public static UnemploymentRegistrationTypeEnum getByEnumName(final String enumName) {
        for (UnemploymentRegistrationTypeEnum element : values()) {
            if (element.name().equals(enumName)) {
                return element;
            }
        }
        return null;
    }

    
    public static Map<String, String> getName2DescMap() {

        Map<String, String> name2TitleMap = new LinkedHashMap<>();

        for (UnemploymentRegistrationTypeEnum element : values()) {
            name2TitleMap.put(element.name(), element.desc);
        }

        return name2TitleMap;
    }
}
